
from flask import Flask, session
from flask_migrate import MigrateCommand
from flask_script import Manager
from info import create_app

app = Flask(__name__)


# 创建应用
app = create_app("dev")

# 创建管理器
mgr = Manager(app)


# 生成迁移命令
mgr.add_command("mc", MigrateCommand)


if __name__ == '__main__':
    print(app.url_map)
    mgr.run()

